package com.ihr360.payroll.importVo;

import com.ihr360.excel.annotation.ExcelCell;
import com.ihr360.excel.annotation.ExcelConfig;
import com.ihr360.excel.annotation.RowNumberField;
import com.ihr360.excel.entity.ExcelI18nStrategyType;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
@ExcelConfig(i18nStrategy = ExcelI18nStrategyType.EXCEL_I18N_STRATEGY_PROPS, propsFileName = "import-i18n.properties")
public class AttendanceBillImportVo {

    public static final String IMPORT_STAFF_NAME = "import_staff_name";
    public static final String IMPORT_MOBILE = "import_mobile";
    public static final String IMPORT_REPORT_TYPE = "import_report_type";
    public static final String IMPORT_REPORT_DATE = "import_report_date";
    public static final String IMPORT_REPORT_ITEM = "import_report_item";
    public static final String IMPORT_REPORT_REMARK = "import_report_remark";
    public static final String IMPORT_APPLY_DATE = "import_apply_date";


    @RowNumberField
    private String rowNum;

    @ExcelCell(headerKey = IMPORT_STAFF_NAME, defaultHeaderName = "姓名")
    @ExcelCell.Valid(allowNull = false)
    private String name;


    @ExcelCell(headerKey = IMPORT_MOBILE, defaultHeaderName = "手机号")
    @ExcelCell.Valid(allowNull = false)
    private String mobileNo;

    @ExcelCell(headerKey = IMPORT_REPORT_TYPE, defaultHeaderName = "单据类型")
    @ExcelCell.Valid(allowNull = false)
    private String reportType;

    @ExcelCell(headerKey = IMPORT_REPORT_DATE, defaultHeaderName = "日期")
    @ExcelCell.Valid(allowNull = false)
    private Date reportDate;

    @ExcelCell(headerKey = IMPORT_REPORT_ITEM, defaultHeaderName = "时长")
    @ExcelCell.Valid(allowNull = false)
    private Double item;

    @ExcelCell(headerKey = IMPORT_REPORT_REMARK, defaultHeaderName = "事由")
    @ExcelCell.Valid(allowNull = true)
    private String remark;

    @ExcelCell(headerKey = IMPORT_APPLY_DATE, defaultHeaderName = "时长")
    @ExcelCell.Valid(allowNull = true)
    private Date applyDate;



}
